package com.hotel.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author YanMin
 * @version 1.0
 * @description:
 * @since 2022/8/16 23:58
 */
@Controller
public class RoomSystemController {
    // 房间列表
    @GetMapping("/roomList")
    public String roomList(){
        return "roomList";
    }

    // 打开修改页面
    @GetMapping("/openUpdateWindow")
    public String openUpdateWindow() {
        return "editRoom";
    }

    // 打开新增页面，返回WEB-INF/jsp/addRoom.jsp
    @GetMapping("/openInsertWindow")
    public String openInsertWindow() {
        return "addRoom";
    }

    @GetMapping("/myecharts")
    public String echarts() {
        return "echarts";
    }
}
